﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MVVM.Core;
using System.Windows;

namespace ViewComponents.Services
{
    public class BasicWindowService : IWindowService
    {
        public bool? ShowViewModelInDialog<TView>(object viewModel)
            where TView : Window, new()
        {
            TView view = new TView { DataContext = viewModel };
            return view.ShowDialog();
        }
    }
}
